<template>
  <div class="header">
    <div class="container">
      <div class="header-content">
        <router-link :to="{name: 'home'}" class="logo inline-block">
          <img src="../assets/images/logo.png"/>
        </router-link>
        <div class="nav">
          <router-link exact :to="'/home'" class="item-in">工作台</router-link>
          <router-link :to="'/home1'" class="item-in">产品</router-link>
          <router-link :to="'/home2'" class="item-in">项目</router-link>
          <router-link :to="'/home3'" class="item-in">测试</router-link>
          <router-link :to="'/home4'" class="item-in">文档</router-link>
          <router-link :to="'/home5'" class="item-in">统计</router-link>
        </div>

        <el-dropdown class="avatar">
          <div class="user-name pointer">
            <span>张三</span>
            <i class="el-icon-arrow-down"></i>
          </div>
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item disabled>个人信息</el-dropdown-item>
            <el-dropdown-item disabled>设置</el-dropdown-item>
            <el-dropdown-item divided>退出登录</el-dropdown-item>
          </el-dropdown-menu>
        </el-dropdown>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'c-header'
}
</script>

<style lang="scss" scoped>
@import '../assets/css/variables.scss';
.header {
  height: 60px;
  .header-content {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo {
    width: 158px;
    height: 36px;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .nav {
    height: 100%;
    margin-left: 75px;
    .item-in {
      display: inline-block;
      height: 100%;
      line-height: 60px;
      font-size: 16px;
      padding: 0 20px;
      margin: 0 10px;
      &.router-link-active {
        color: $primary_color;
        font-weight: bold;
      }
    }
  }
  .avatar {
    .user-name {
      width: 110px;
      text-align: center;
    }
  }
}
</style>
